package com.cyjf.biz.impl;

import com.cyjf.biz.service.StaffService;
import com.cyjf.dbview.bo.CarDealerCountBO;
import com.cyjf.dbview.bo.StaffBO;
import com.cyjf.dbview.mapper.CrmSalesStaffMapper;
import com.cyjf.util.ResultVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("staffService")
@Slf4j
public class StaffServiceImpl implements StaffService {

    @Resource
    private CrmSalesStaffMapper  crmSalesStaffMapper;


    @Override
    public ResultVO staffGMV() {
        ResultVO<CarDealerCountBO> resultVO = new ResultVO();
        CarDealerCountBO  carDealerCountBO = new CarDealerCountBO();

        List<StaffBO> staffList = crmSalesStaffMapper.getStaffGMV("1");

        carDealerCountBO.setStaffGMV(staffList);
        resultVO.setData(carDealerCountBO);

        return resultVO;
    }
}
